/*
 * @Author: Yeong Lee
 * @Date: 2021-02-15 01:03:41
 * @Last Modified by: Yeong Lee
 * @Last Modified time: 2021-03-03 23:08:24
 */

import { handleActions } from 'redux-actions';

import { HomeActionTypes } from '../actions';

function initState() {
  return {
    homePageData: {},
  };
}

export default handleActions(
  {
    [HomeActionTypes.HOME_PAGE_DATA_UPDATE]: (state, payload) => {
      console.log(payload);
      return { homePageData: payload }
    },
  },
  initState(),
);
